package cn.lingyangwl.agile.system.model.rqrs.area;

import cn.lingyangwl.agile.model.BaseTree;
import cn.lingyangwl.agile.system.model.entity.SysArea;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 行政区划
 * @see SysArea
 * @author shenguangyang
 */
@Getter
@Setter
public class AreaTree extends BaseTree<String, AreaTree>  {
	@ApiModelProperty(value = "区域编码")
	protected String id;

	@ApiModelProperty(value = "区域名称")
	protected String areaName;

	@ApiModelProperty(value = "父级编号")
	protected String parentId;

	@Override
	public String treeId() {
		return this.getId();
	}

	@Override
	public void treeId(String treeId) {
		this.setId(treeId);
	}

	@Override
	public String treeParentId() {
		return this.getParentId();
	}

	@Override
	public void treeParentId(String treeParentId) {
		this.setParentId(treeParentId);
	}

	@Override
	public String name() {
		return this.getAreaName();
	}
}
